Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit fb16f8926adfa8f3821d512f69f74664fe317de4


Parents : 2a7810e
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-03T13:18:02-05:00

fix(ci): GitHub CI script for macOS by persisting CPPFLAGS, LDFLAGS, and PKG_CONFIG_PATH to GITHUB_ENV for subsequent steps

Changes

1 files changed, 9 insertions(+), 1 deletions(-)


Diff

diff --git a/scripts/ci/github-install-deps.sh b/scripts/ci/github-install-deps.sh
index 6d6cf57e..e351914e 100755
--- a/scripts/ci/github-install-deps.sh
+++ b/scripts/ci/github-install-deps.sh
@@ -7,7 +7,8 @@ cd "$ROOT"
export GIT_TERMINAL_PROMPT=0
-# pycodec2 builds against libcodec2
+# pycodec2 builds against libcodec2. Export for this step and persist to GITHUB_ENV so
+# later steps (e.g. pip install -e . for the x64 universal slice) see the same flags.
if [[ "$(uname -s)" == "Darwin" ]]; then
brew install codec2
_codec2_prefix="$(brew --prefix codec2)"
@@ -16,6 +17,13 @@ if [[ "$(uname -s)" == "Darwin" ]]; then
if [[ -d "${_codec2_prefix}/lib/pkgconfig" ]]; then
export PKG_CONFIG_PATH="${_codec2_prefix}/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
fi
+ if [[ -n "${GITHUB_ENV:-}" ]]; then
+ {
+ echo "CPPFLAGS=${CPPFLAGS}"
+ echo "LDFLAGS=${LDFLAGS}"
+ echo "PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-}"
+ } >> "$GITHUB_ENV"
+ fi
fi
python -m poetry install --no-interaction --no-ansi


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────